'use strict';

const Controller = require('egg').Controller;

class HomeController extends Controller {
  async index() {
    const { ctx } = this;
    ctx.body = 'hi, egg';
    for (let index = 0; index < 10; index++) {
      this.app.testQueue.add({ index });
    }
  }
}

module.exports = HomeController;
